export function capitalize(str) {
    if (!str) {
        return str;
    } // 处理空字符串
    return str.replace(/^./, (match) => match.toUpperCase());
}
